﻿using System;
using System.Web;
using System.Data;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.SessionState;

namespace KlirProject
{
    public class Login
    {
        private static object _lock = new object();
        public bool login()
        {
            try
            {

                


               // DataClasses1DataContext kdc = new DataClasses1DataContext(ConfigurationManager.ConnectionStrings["KlirConnectionString"].ConnectionString);
               // var IsUser = kdc.LogIn("assafbiton", "G!bson100");
              //  KlirDCDataContext kdc = new KlirDCDataContext(ConfigurationManager.ConnectionStrings["KlirConnectionString"].ConnectionString);
              //  var IsUser = kdc.LogIn("assafbiton", "");
            }
            catch (Exception ex)
            {
                
                throw;
            }
           // KlirClassesDataContext dc = new KlirClassesDataContext().LogIn();
  
            return false;
        }

        public void LoginCache(string results)
        {
            if (!string.IsNullOrEmpty(results))
            {
                try
                {
                    lock (_lock)
                    {
                        
                        
                    }
                }
                catch (Exception)
                {
                    
                    throw;
                }
                
            }

        }
    }
}
